<h1>Add Page</h1>
<?php
echo $this->Form->create('Page');
echo $this->Form->input('title');
//echo $this->Form->input('image', array('type' => 'file'));

?>
<div class="images">
<?php
$i = 0;
foreach($images as $image){
    echo '<label for="PageImage'.$i.'">';
    echo '<img src="'.$image.'"/>';
    echo '<input type="radio" name="data[Page][image]" id="PageImage'.$i.'" value="'.$image.'"/>';
    echo '</label>';
    $i++;
}
?>
</div>
<?php
/*
echo $this->Form->input('id_cat', array(
    'options' => $categories,
    'empty' => '(choose one)',
    'data-url' => '/AdminPages/getSubCat.json'
));

echo $this->Form->input('id_subcat', array(
    'options' => array(),
    'empty' => '(choose one)',
    'disabled' => 'disabled'
));

echo $this->Form->input('body', array('rows' => '3'));
*/
echo $this->Form->submit('Valider', array('class' => 'button'));
echo $this->Form->end();
?>